// 接口多 模块化
import { PartitionType } from "@/models"

export const getPartitionsRequest = (): Promise<PartitionType[]> => {
    const p = new Promise<PartitionType[]>((resolve, reject) => {
        fetch('http://localhost:3300/partitions')
            .then(data => data.json())
            .then(data => {
                resolve(data)
            })
    })
    return p;
}
